#include #include #include using namespace std; void main() { //ask user for input file names string inputFileName; string outputFileName; //declare file handles name them something like fin and fout ofstream fout(outputFileName); //open input file //open output file //loop and read input one line or char at a time until eof //write the line or char to output //close files } //void main() //{ // ofstream fout; // fout.open("Source.cpp",ios_base::app); // fout << "OOPs" << endl; // fout.close(); //} //int main(int argc, char*argv[]) //{ // //object - variable of a complex type // //file handle - variable used to read or write to a file // ifstream fin; // string fileName; // // do // { // //fin.clear(); // cout << "File Name?"; // getline(cin,fileName); // fin.open(fileName); // } // while(fin.fail()); // // string line; // // if(!fin.fail()) // { // while(!fin.eof()) // { // getline(fin,line); // cout << line << endl; // // bool foundIt = false; // for(int i = 1; i < argc; i++) // { // if(line.find(argv[i]) != string::npos) // { // foundIt = true; // } // } // if(foundIt) // { // cout << line << endl; // } // // //if(line.length() >= 8) // //{ // // cout << line.substr(8) << endl; // //} // //look at the first char // //if it is b, space or number, or line is empty // //look for search stuff // } // } // //}